<%@ page import="weblicitacao.Licitacao" %>



<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'numero', 'error')} required">
	<label for="numero">
		<g:message code="licitacao.numero.label" default="Numero" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="numero" required="" value="${licitacaoInstance?.numero}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'tipo', 'error')} required">
	<label for="tipo">
		<g:message code="licitacao.tipo.label" default="Tipo" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="tipo" onchange="ajustaDadosLicitacao(this)" name="tipo" from="${licitacaoInstance.constraints.tipo.inList}" required="" value="${licitacaoInstance?.tipo}" valueMessagePrefix="licitacao.tipo"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'nomeDoPregoeiro', 'error')} ">
	<label for="nomeDoPregoeiro">
		<g:message code="licitacao.nomeDoPregoeiro.label" default="Nome Do Pregoeiro" />
		
	</label>
	<g:textField name="nomeDoPregoeiro" value="${licitacaoInstance?.nomeDoPregoeiro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'empresa', 'error')} required">
	<label for="empresa">
		<g:message code="licitacao.empresa.label" default="Empresa" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="empresa" name="empresa.id" from="${weblicitacao.Empresa.list()}" optionKey="id" required="" value="${licitacaoInstance?.empresa?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'localDeEntrega', 'error')} ">
	<label for="localDeEntrega">
		<g:message code="licitacao.localDeEntrega.label" default="Local De Entrega" />
		
	</label>
	<g:textField name="localDeEntrega" value="${licitacaoInstance?.localDeEntrega}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="licitacao.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" format="dd/MM/yyyy hh:mm" precision="day"  value="${licitacaoInstance?.data}"  />
</div>

<div id="prazoVigencia" class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'prazoDeVigencia', 'error')} ">
	<label for="prazoDeVigencia">
		<g:message code="licitacao.prazoDeVigencia.label" default="Prazo De Vigencia" />
		
	</label>
	<g:field type="number" name="prazoDeVigencia" value="${fieldValue(bean: licitacaoInstance, field: 'prazoDeVigencia')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: licitacaoInstance, field: 'tipoItens', 'error')} required">
	<label for="tipoItens">
		<g:message code="licitacao.tipoItens.label" default="Tipo Itens" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="tipoItens" from="${licitacaoInstance.constraints.tipoItens.inList}" required="" value="${licitacaoInstance?.tipoItens}" valueMessagePrefix="licitacao.tipoItens"/>
</div>

